<template>
	<view>
		<view v-for="item in 10" :key="item" class="white-box margin32">
			<view class="cover">
				<image :src="IMAGE_URL + '/static/login/bg.png'"></image>
				<view class="flex between status-box">
					<view class="flex font24 status">报名进行中</view>
					<i class="iconfont icon-heart"></i>
				</view>
				<view class="flex start font28 fontbold-500 title">龙舟起 粽飘香 龙舟嘉年华赛事活动</view>
			</view>
			<view class="item-content">
				<view class="flex between tab-box font24">
					<view class="flex tab">社区活动</view>
					<view>5/26 17:00至5/30 17:00</view>
				</view>
				<view class="flex between">
					<view>
						<view class="flex" style="margin-bottom: 16rpx;">
							<i class="iconfont icon-dingwei font28"></i>
							<view class="font28">华望城社区物业中心</view>
						</view>
						<view class="flex start">
							<view class="flex avatar-group">
								<image v-for="ava in 4" :src="IMAGE_URL + '/static/login/bg.png'" class="avatar"></image>
							</view>
							<view class="font24 num">264人报名</view>
						</view>
					</view>
					<view class="flex btn fontbold-500 font28">结束报名</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
import appConfig from '@/config/app.js'
export default {
  data() {
    return { IMAGE_URL: appConfig.IMAGE_URL }
  }
}
</script>

<style scoped lang="scss">
	.margin32 {
		margin: 0 32rpx;
	}

	.white-box {
		background: $uni-bg-color;
		box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.1);
		border-radius: 20rpx;
		margin-bottom: 28rpx;

		.cover {
			width: 100%;
			height: 360rpx;
			border-radius: 20rpx 20rpx 0 0;
			position: relative;

			image {
				border-radius: 20rpx 20rpx 0 0;
				height: 100%;
				width: 100%;
			}

			.status-box {
				position: absolute;
				top: 0;
				width: 100%;

				.status {
					width: 164rpx;
					height: 52rpx;
					background: rgba(0, 0, 0, 0.3);
					border-radius: 20rpx 0rpx 20rpx 0rpx;
					color: $uni-text-color-inverse;
				}

				.iconfont {
					font-size: 32rpx;
					margin-right: 24rpx;
					color: #FF3737;
				}
			}

			.title {
				height: 56rpx;
				background: rgba(0, 0, 0, 0.3);
				border-radius: 16rpx 16rpx 0rpx 0rpx;
				padding: 0 20rpx;
				box-sizing: border-box;
				position: absolute;
				bottom: 0;
				width: 100%;
				color: $uni-text-color-inverse;
			}
		}

		.item-content {
			padding: 16rpx 20rpx 20rpx;
			box-sizing: border-box;

			.tab-box {
				color: #DF9824;
				margin-bottom: 24rpx;
			}

			.tab {
				font-weight: 500;
				width: 126rpx;
				height: 44rpx;
				background: #FFF8ED;
				border-radius: 10rpx;
			}

			.avatar-group {
				
				image {
					width: 32rpx;
					height: 32rpx;
					border-radius: 50%;
					margin-left: -16rpx;

					&:nth-child(1) {
						margin-left: 0;
					}
				}
			}
			
			.icon-dingwei {
				margin-right: 8rpx;
			}
			
			.num {
				margin-left: 8rpx;
				color: $uni-text-color-grey;
			}

			.btn {
				width: 168rpx;
				height: 56rpx;
				background: linear-gradient(270deg, #25A4EF 0%, #0785CF 100%);
				border-radius: 60rpx;
				color: $uni-text-color-inverse;
			}
		}
	}
</style>